.class public Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;
.super Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/a;


# static fields
.field private static final ARRAY_NOT_READING:Z = false

.field private static final ARRAY_READING:Z = true

.field private static final CHILD_EMPTY:Z = true

.field private static final CHILD_NOT_EMPTY:Z = false

.field private static final COLLECTION_NOT_READING:Z = false

.field private static final COLLECTION_READING:Z = true


# instance fields
.field private arrayProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;

.field private arrayReading:Z

.field private clas:Ljava/lang/Class;

.field private collectionProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionProcessor;

.field private collectionReading:Z

.field private currentNodeName:Ljava/lang/String;

.field private currentNodeValue:Ljava/lang/Object;

.field private isChildEmpty:Z

.field private object:Ljava/lang/Object;

.field private setterMethodMap:Ljava/util/Map;


# direct methods
.method public constructor <init>(Ljava/lang/Class;Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;)V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0, p2}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/a;-><init>(Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;)V

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->clas:Ljava/lang/Class;

    iput-boolean v1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->arrayReading:Z

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->isChildEmpty:Z

    iput-boolean v1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->collectionReading:Z

    if-eqz p1, :cond_0

    invoke-direct {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->init()V

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->rootNode:Lorg/w3c/dom/Node;

    invoke-direct {p0, v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->readChildren(Lorg/w3c/dom/Node;)V

    invoke-direct {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->checkPendingOperation()V

    :cond_0
    return-void
.end method

.method private addArray(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z
    .locals 3

    const/4 v2, 0x1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->arrayProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;

    if-nez v0, :cond_0

    new-instance v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;

    invoke-direct {v0, p1, p2}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;-><init>(Ljava/lang/String;Ljava/lang/Class;)V

    iput-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->arrayProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;

    invoke-virtual {p0, v2}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->setArrayReading(Z)V

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->arrayProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->getSetterName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->arrayProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;

    invoke-virtual {v0, p3}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->addArrayValue(Ljava/lang/Object;)V

    :goto_0
    move v0, v2

    :goto_1
    return v0

    :cond_1
    invoke-direct {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->processArray()V

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->setterMethodMap:Ljava/util/Map;

    invoke-static {p1}, Lcom/wqmobile/sdk/pojoxml/util/StringUtil;->initCap(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Class;

    invoke-static {v0}, Lcom/wqmobile/sdk/pojoxml/util/ClassUtil;->isArray(Ljava/lang/Class;)Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-direct {p0, p1, v0, p3}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->addArray(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z

    goto :goto_0

    :cond_2
    const/4 v0, 0x0

    goto :goto_1
.end method

.method private addCollection(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z
    .locals 4

    const/4 v3, 0x1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->collectionProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionProcessor;

    if-nez v0, :cond_0

    new-instance v0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionProcessor;

    invoke-direct {v0, p1, p2}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionProcessor;-><init>(Ljava/lang/String;Ljava/lang/Class;)V

    iput-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->collectionProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionProcessor;

    :cond_0
    invoke-direct {p0, p1, p2, p3}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->checkCollectionContainsObject(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    move v0, v3

    :goto_0
    return v0

    :cond_1
    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->collectionProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionProcessor;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionProcessor;->getSetterName()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->clas:Ljava/lang/Class;

    iget-object v2, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->object:Ljava/lang/Object;

    invoke-static {v0, v1, v2}, Lcom/wqmobile/sdk/pojoxml/util/ClassUtil;->invokeGetter(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_2

    iget-object v1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->collectionProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionProcessor;

    invoke-virtual {v1, v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionProcessor;->setCollectionData(Ljava/lang/Object;)V

    :cond_2
    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->collectionProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionProcessor;

    invoke-virtual {v0, p3}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionProcessor;->addCollection(Ljava/lang/Object;)V

    move v0, v3

    goto :goto_0
.end method

.method private checkCollectionContainsObject(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z
    .locals 2

    invoke-static {p3}, Lcom/wqmobile/sdk/pojoxml/util/ClassUtil;->isCollection(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    check-cast p3, Ljava/util/List;

    invoke-interface {p3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-nez v1, :cond_0

    const/4 v0, 0x1

    :goto_1
    return v0

    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    invoke-direct {p0, p1, p2, v1}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->addCollection(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    goto :goto_1
.end method

.method private checkPendingOperation()V
    .locals 1

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->isArrayReading()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-direct {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->processArray()V

    :cond_0
    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->isCollectionReading()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-direct {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->processCollection()V

    :cond_1
    return-void
.end method

.method private init()V
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->clas:Ljava/lang/Class;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->clas:Ljava/lang/Class;

    invoke-static {v0}, Lcom/wqmobile/sdk/pojoxml/util/ClassUtil;->getSetterAndClass(Ljava/lang/Class;)Ljava/util/Map;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->setSetterMethodMap(Ljava/util/Map;)V

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->clas:Ljava/lang/Class;

    invoke-static {v0}, Lcom/wqmobile/sdk/pojoxml/util/ClassUtil;->createObject(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->setObject(Ljava/lang/Object;)V

    goto :goto_0
.end method

.method private processArray()V
    .locals 5

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->arrayProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;

    if-nez v0, :cond_0

    const-string v0, "testxml"

    const-string v1, "Error : arrayProcessor is null"

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->arrayProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->arrayProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->processArray()Ljava/lang/Object;

    move-result-object v0

    iget-object v1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->clas:Ljava/lang/Class;

    iget-object v2, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->object:Ljava/lang/Object;

    iget-object v3, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->arrayProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;

    invoke-virtual {v3}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->getSetterName()Ljava/lang/String;

    move-result-object v3

    iget-object v4, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->arrayProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;

    invoke-virtual {v4}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;->getArrayClass()Ljava/lang/Class;

    move-result-object v4

    invoke-static {v1, v2, v3, v0, v4}, Lcom/wqmobile/sdk/pojoxml/util/ClassUtil;->invokeSetter(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Class;)V

    :cond_1
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->setArrayReading(Z)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->arrayProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToArrayProcessor;

    return-void
.end method

.method private processCollection()V
    .locals 5

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->collectionProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionProcessor;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionProcessor;->getCollectionData()Ljava/lang/Object;

    move-result-object v0

    iget-object v1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->clas:Ljava/lang/Class;

    iget-object v2, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->object:Ljava/lang/Object;

    iget-object v3, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->collectionProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionProcessor;

    invoke-virtual {v3}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionProcessor;->getSetterName()Ljava/lang/String;

    move-result-object v3

    iget-object v4, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->collectionProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionProcessor;

    invoke-virtual {v4}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionProcessor;->getCollectionClass()Ljava/lang/Class;

    move-result-object v4

    invoke-static {v1, v2, v3, v0, v4}, Lcom/wqmobile/sdk/pojoxml/util/ClassUtil;->invokeSetter(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Class;)V

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->setCollectionReading(Z)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->collectionProcessor:Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionProcessor;

    return-void
.end method

.method private processElementNodeContinue(Lorg/w3c/dom/Node;)Z
    .locals 8

    const/4 v7, 0x0

    const/4 v6, 0x1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->setterMethodMap:Ljava/util/Map;

    invoke-virtual {p0, p1}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->getElementName(Lorg/w3c/dom/Node;)Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Class;

    if-nez v0, :cond_0

    move v0, v6

    :goto_0
    return v0

    :cond_0
    invoke-interface {p1}, Lorg/w3c/dom/Node;->getNodeName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v1}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->getActualValueFromAleasName(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0}, Lcom/wqmobile/sdk/pojoxml/util/ClassUtil;->isArray(Ljava/lang/Class;)Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-static {v0}, Lcom/wqmobile/sdk/pojoxml/util/ClassUtil;->isPrimitiveArray(Ljava/lang/Class;)Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-interface {p1}, Lorg/w3c/dom/Node;->getNodeValue()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-nez v2, :cond_1

    move v0, v6

    goto :goto_0

    :cond_1
    invoke-virtual {p0, v6}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->setArrayReading(Z)V

    invoke-interface {p1}, Lorg/w3c/dom/Node;->getNodeValue()Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_2

    invoke-interface {p1}, Lorg/w3c/dom/Node;->getNodeValue()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-nez v2, :cond_2

    const/4 v2, 0x0

    invoke-direct {p0, v1, v0, v2}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->addArray(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z

    :cond_2
    invoke-static {v0}, Lcom/wqmobile/sdk/pojoxml/util/ClassUtil;->isCollection(Ljava/lang/Class;)Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-virtual {p0, v6}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->setCollectionReading(Z)V

    new-instance v2, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    invoke-direct {v2}, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;-><init>()V

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->getInitInfo()Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    move-result-object v3

    invoke-virtual {v3}, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;->getCollectionClassMap()Ljava/util/Map;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;->setCollectionClassMap(Ljava/util/Map;)V

    invoke-virtual {v2, p1}, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;->setRootNode(Lorg/w3c/dom/Node;)V

    new-instance v3, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionHandler;

    invoke-direct {v3, v2, v1}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionHandler;-><init>(Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;Ljava/lang/String;)V

    invoke-virtual {v3}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToCollectionHandler;->processCollection()Ljava/lang/Object;

    move-result-object v2

    invoke-direct {p0, v1, v0, v2}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->addCollection(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z

    invoke-direct {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->processCollection()V

    move v0, v6

    goto :goto_0

    :cond_3
    invoke-static {v0}, Lcom/wqmobile/sdk/pojoxml/util/ClassUtil;->isPrimitiveOrWrapper(Ljava/lang/Class;)Z

    move-result v2

    if-nez v2, :cond_7

    invoke-static {v0}, Lcom/wqmobile/sdk/pojoxml/util/ClassUtil;->isArray(Ljava/lang/Class;)Z

    move-result v2

    if-eqz v2, :cond_6

    invoke-virtual {v0}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;

    move-result-object v2

    new-instance v3, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    invoke-direct {v3}, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;-><init>()V

    invoke-virtual {v3, p1}, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;->setRootNode(Lorg/w3c/dom/Node;)V

    const/4 v4, -0x1

    invoke-interface {p1}, Lorg/w3c/dom/Node;->getChildNodes()Lorg/w3c/dom/NodeList;

    move-result-object v5

    invoke-interface {v5}, Lorg/w3c/dom/NodeList;->getLength()I

    move-result v5

    if-nez v5, :cond_4

    move v4, v7

    :cond_4
    if-nez v4, :cond_5

    move v0, v6

    goto/16 :goto_0

    :cond_5
    new-instance v4, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;

    invoke-direct {v4, v2, v3}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;-><init>(Ljava/lang/Class;Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;)V

    invoke-virtual {v4}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->getObject()Ljava/lang/Object;

    move-result-object v2

    invoke-direct {p0, v1, v0, v2}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->addArray(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z

    move v0, v6

    goto/16 :goto_0

    :cond_6
    invoke-direct {p0, v0, p1}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->setInnerObject(Ljava/lang/Class;Lorg/w3c/dom/Node;)V

    move v0, v6

    goto/16 :goto_0

    :cond_7
    move v0, v7

    goto/16 :goto_0
.end method

.method private readChildren(Lorg/w3c/dom/Node;)V
    .locals 5

    const/4 v1, 0x0

    invoke-interface {p1}, Lorg/w3c/dom/Node;->hasChildNodes()Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-interface {p1}, Lorg/w3c/dom/Node;->getNodeName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->setCurrentNodeName(Ljava/lang/String;)V

    invoke-interface {p1}, Lorg/w3c/dom/Node;->getChildNodes()Lorg/w3c/dom/NodeList;

    move-result-object v0

    iput-boolean v1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->isChildEmpty:Z

    :goto_1
    invoke-interface {v0}, Lorg/w3c/dom/NodeList;->getLength()I

    move-result v2

    if-lt v1, v2, :cond_2

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->getCurrentNodeName()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->getCurrentNodeName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->getCurrentNodeValue()Ljava/lang/Object;

    move-result-object v1

    invoke-direct {p0, v0, v1}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->setValuesToCurrentObject(Ljava/lang/String;Ljava/lang/Object;)V

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->setCurrentNodeName(Ljava/lang/String;)V

    goto :goto_0

    :cond_2
    invoke-interface {v0, v1}, Lorg/w3c/dom/NodeList;->item(I)Lorg/w3c/dom/Node;

    move-result-object v2

    invoke-interface {v2}, Lorg/w3c/dom/Node;->getNodeType()S

    move-result v3

    const/4 v4, 0x1

    if-ne v3, v4, :cond_4

    invoke-direct {p0, v2}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->processElementNodeContinue(Lorg/w3c/dom/Node;)Z

    move-result v3

    if-nez v3, :cond_3

    invoke-direct {p0, v2}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->readChildren(Lorg/w3c/dom/Node;)V

    :cond_3
    :goto_2
    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    :cond_4
    invoke-interface {v2}, Lorg/w3c/dom/Node;->getNodeType()S

    move-result v3

    const/4 v4, 0x3

    if-eq v3, v4, :cond_5

    invoke-interface {v2}, Lorg/w3c/dom/Node;->getNodeType()S

    move-result v3

    const/4 v4, 0x4

    if-ne v3, v4, :cond_3

    :cond_5
    invoke-interface {v2}, Lorg/w3c/dom/Node;->getNodeValue()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v2}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->setCurrentNodeValue(Ljava/lang/Object;)V

    goto :goto_2
.end method

.method private readNode(Lorg/w3c/dom/Node;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->readChildren(Lorg/w3c/dom/Node;)V

    return-void
.end method

.method private setInnerObject(Ljava/lang/Class;Lorg/w3c/dom/Node;)V
    .locals 4

    const/4 v0, -0x1

    invoke-interface {p2}, Lorg/w3c/dom/Node;->getNodeName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v1}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->getActualValueFromAleasName(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-interface {p2}, Lorg/w3c/dom/Node;->getChildNodes()Lorg/w3c/dom/NodeList;

    move-result-object v2

    invoke-interface {v2}, Lorg/w3c/dom/NodeList;->getLength()I

    move-result v2

    if-nez v2, :cond_0

    const/4 v0, 0x0

    :cond_0
    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->getInitInfo()Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    move-result-object v2

    invoke-virtual {v2, p2}, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;->setRootNode(Lorg/w3c/dom/Node;)V

    new-instance v2, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->getInitInfo()Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    move-result-object v3

    invoke-direct {v2, p1, v3}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;-><init>(Ljava/lang/Class;Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;)V

    invoke-virtual {v2}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->getObject()Ljava/lang/Object;

    move-result-object v2

    if-nez v0, :cond_3

    const/4 v0, 0x0

    :goto_0
    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->isArrayReading()Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-direct {p0, v1, p1, v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->addArray(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_2

    :cond_1
    iget-object v2, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->clas:Ljava/lang/Class;

    iget-object v3, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->object:Ljava/lang/Object;

    invoke-static {v2, v3, v1, v0, p1}, Lcom/wqmobile/sdk/pojoxml/util/ClassUtil;->invokeSetter(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Class;)V

    :cond_2
    return-void

    :cond_3
    move-object v0, v2

    goto :goto_0
.end method

.method private setValuesToCurrentObject(Ljava/lang/String;Ljava/lang/Object;)V
    .locals 4

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->setterMethodMap:Ljava/util/Map;

    invoke-static {p1}, Lcom/wqmobile/sdk/pojoxml/util/StringUtil;->initCap(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Class;

    iget-boolean v1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->arrayReading:Z

    if-eqz v1, :cond_2

    invoke-static {v0}, Lcom/wqmobile/sdk/pojoxml/util/ClassUtil;->isArray(Ljava/lang/Class;)Z

    move-result v1

    if-eqz v1, :cond_1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->setterMethodMap:Ljava/util/Map;

    invoke-static {p1}, Lcom/wqmobile/sdk/pojoxml/util/StringUtil;->initCap(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Class;

    invoke-direct {p0, p1, v0, p2}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->addArray(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-direct {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->processArray()V

    :cond_2
    invoke-static {v0}, Lcom/wqmobile/sdk/pojoxml/util/ClassUtil;->isPrimitiveOrWrapper(Ljava/lang/Class;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->clas:Ljava/lang/Class;

    iget-object v2, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->object:Ljava/lang/Object;

    invoke-static {p2, v0}, Lcom/wqmobile/sdk/pojoxml/util/ClassUtil;->ObjectFromValue(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v3

    invoke-static {v1, v2, p1, v3, v0}, Lcom/wqmobile/sdk/pojoxml/util/ClassUtil;->invokeSetter(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Class;)V

    goto :goto_0
.end method


# virtual methods
.method public getClas()Ljava/lang/Class;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->clas:Ljava/lang/Class;

    return-object v0
.end method

.method public getCurrentNodeName()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->currentNodeName:Ljava/lang/String;

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->getActualValueFromAleasName(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getCurrentNodeValue()Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->currentNodeValue:Ljava/lang/Object;

    return-object v0
.end method

.method public bridge synthetic getElementName(Lorg/w3c/dom/Node;)Ljava/lang/String;
    .locals 0

    invoke-super {p0, p1}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/a;->getElementName(Lorg/w3c/dom/Node;)Ljava/lang/String;

    move-result-object p0

    check-cast p0, Ljava/lang/String;

    return-object p0
.end method

.method public bridge synthetic getInitInfo()Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;
    .locals 0

    invoke-super {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/a;->getInitInfo()Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    move-result-object p0

    check-cast p0, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    return-object p0
.end method

.method public getObject()Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->object:Ljava/lang/Object;

    return-object v0
.end method

.method public getParsedObject()Ljava/lang/Object;
    .locals 1

    iget-boolean v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->isChildEmpty:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->object:Ljava/lang/Object;

    goto :goto_0
.end method

.method public bridge synthetic getRootNode()Lorg/w3c/dom/Node;
    .locals 1

    invoke-super {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/a;->getRootNode()Lorg/w3c/dom/Node;

    move-result-object v0

    return-object v0
.end method

.method public getSetterMethodMap()Ljava/util/Map;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->setterMethodMap:Ljava/util/Map;

    return-object v0
.end method

.method public isArrayReading()Z
    .locals 1

    iget-boolean v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->arrayReading:Z

    return v0
.end method

.method public isCollectionReading()Z
    .locals 1

    iget-boolean v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->collectionReading:Z

    return v0
.end method

.method public setArrayReading(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->arrayReading:Z

    return-void
.end method

.method public setClas(Ljava/lang/Class;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->clas:Ljava/lang/Class;

    return-void
.end method

.method public setCollectionReading(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->collectionReading:Z

    return-void
.end method

.method public setCurrentNodeName(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->currentNodeName:Ljava/lang/String;

    return-void
.end method

.method public setCurrentNodeValue(Ljava/lang/Object;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->currentNodeValue:Ljava/lang/Object;

    return-void
.end method

.method public bridge synthetic setInitInfo(Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;)V
    .locals 0

    invoke-super {p0, p1}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/a;->setInitInfo(Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;)V

    return-void
.end method

.method public setObject(Ljava/lang/Object;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->object:Ljava/lang/Object;

    return-void
.end method

.method public bridge synthetic setRootNode(Lorg/w3c/dom/Node;)V
    .locals 0

    invoke-super {p0, p1}, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/a;->setRootNode(Lorg/w3c/dom/Node;)V

    return-void
.end method

.method public setSetterMethodMap(Ljava/util/Map;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/xmltopojo/dom/XmlToObjectProcessor;->setterMethodMap:Ljava/util/Map;

    return-void
.end method
